﻿<!doctype html>
<html>
<head>
    <title>微街秀 > 推广效果</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link rel="stylesheet" type="text/css" href="css/css.css">
    <link rel="stylesheet" type="text/css" href="css/Makeresult.css">
     <link href="css/MakeAdvertMain.css" rel="stylesheet" type="text/css" />
    <script src="js/ajax-data.js" type="text/javascript"></script>
    <script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script src="js/dialog.js" type="text/javascript"></script>
</head>
<body>
    <div>
        <div class="wamtop">
            <div class="topcententxt">
                推广</div>
            <div class="topright" style="color: white;" onClick="window.location.href='Makesh_1.html'">
                 分享</div>
        </div>
        <div class="selectTags">
            <table class="tab">
                <tbody><tr>
                    <td>
                        <div class="model" id="Share" style="background-color: rgb(244, 244, 244);" onClick="window.location.href='makead_1.html'">
                            <img src="img/Makeimg/newicon/9.png">
                            <div>
                                已发推广
                            </div>
                            <div class="border"></div>
                        </div>
                    </td>
                    <td>
                        <div class="model" id="effect" style="color: rgb(243, 123, 11); background-color: rgb(231, 231, 231);">
                            <img src="img/Makeimg/newicon/12.png">
                            <div>
                                推广效果
                            </div>
                               <div class="border" style="border-bottom-width: 2px; border-bottom-color: rgb(243, 123, 11); border-bottom-style: solid;"></div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="model" id="pubsilh" style="background-color: rgb(244, 244, 244);" onClick="window.location.href='makead_3.html'">
                            <img src="img/Makeimg/newicon/13.png">
                            <div>
                                发布推广
                            </div>
                               <div class="border" style=""></div>
                        </div>
                    </td>
                    <td>
                        <div class="model" id="cost" style="background-color: rgb(244, 244, 244);" onClick="window.location.href='makead_4.html'">
                            <img src="img/Makeimg/newicon/15.png">
                            <div>
                                费用充值
                            </div>
                               <div class="border" style=""></div>
                        </div>
                    </td>
                </tr>
            </tbody></table>
        </div>
        <div class="Tags">
            <div class="Tagtxt">推广效果</div>
                  <div class="numclass">
            <b class="sanjiao"></b>
            <div class="countnum">0</div>
        </div>
        <div class="tg_select">
        </div>
            <div class="bottom">
            <ul>
                <li>
                    <div onClick="window.location.href='index.html'">
                        <img src="img/tab1_g.png" /><br />
                        发现
                    </div>
                </li>
                <li>
                    <div onClick="window.location.href='publish.html'">
                        <img src="img/tab2_g.png" /><br />
                        发布
                    </div>
                </li>
                <li>
                      <div class="Defutalcolor" style=" position:relative;">
                        <img src="img/tab3_y.png" />
                        <br />
                        推广
                        <div class="newRed">
                        </div>
                    </div>
                </li>
                <li>
                    <div onClick="if(login())window.location.href = 'Personal.html'">
                        <img src="img/tab4_g.png" /><br />
                        我的
                    </div>
                </li>
            </ul>
        </div>
    </div>
</body>
<script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="js/dialog.js" type="text/javascript"></script>
<script src="js/ajax-data.js" type="text/javascript"></script>
<script src="js/base.js" type="text/javascript"></script>
<script>
    var pagecount = "0";
    var page = 1;
    var keyword = "";
    $(document).ready(function () {
        load(page);
        $(window).bind("scroll", function () {
            //当滚动条滚动时
            var scollTop = $(this).scrollTop() + $(this).height();
            var scollH = $(document).height();
            if (scollH - scollTop < 100) {
                if (wait.isShow) { return; } //如果正在加载，则返回
                page++;
                load(page);
            }
            return false;
        });
    });
    function load(page) {
        $(".countnum").html("0 条");
        if (pagecount == "1") { return; }
        if (!islogin()) { window.location.href = 'login.html'; return; }
        AjaxStart("ajax/fc_article.ashx?getlist", "&state=1&page_index=" + page, function (data) {
            if (data.code == "4") { pagecount = "1"; return; }
            if (data.item.pageCount < page) {
                if (pagecount == "0")
                    Alert('到底了！');
                pagecount = "1"; return;
            }
            $(".countnum").html(data.item.itemCount + " 条");
            loadhtml(data);
        });
    }
    function loadhtml(data) {
        $(data.item.table).each(function () {
            var logo = this.logo == null ? "img/30.png" : this.logo;
            var title = this.title;
            var titlelenth = 12;
            if (document.body.scrollWidth > 325) { titlelenth = 16; }
            if (title.length > titlelenth)
                title = title.substr(0, titlelenth) + "...";

            $(".tg_select").append("<div class=\"centenlist\"><div class=\"centenimg\"><img src=\"" + logo + "\"></div><div class=\"cententxt\">" +
                    "<div class=\"cententxttop\" onclick=\"window.location.href='makeresultlist.html?article_id=" + this.id + "'\">" +
                        "<strong>" + title + "</strong></div>" +
                    "<div class=\"centenTime\">" + this.date.substr(0, 10) + "</div>" +
                    "<div class=\"centenflow\">" + this.op_total + " / <span>" + (this.op_total - this.op_remainder) + "</span></div></div></div>");
        });
    }
    </script>
</html>
